﻿<%@ Page Language="C#" AutoEventWireup="true"  CodeFile="Default.aspx.cs" Inherits="_Default" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>EDM Browser</title>
</head>
<body>
    <form id="form1" runat="server">
    <asp:UpdatePanel ID="ajax_panel" runat="server">
    <ContentTemplate>
    <div style="float:left">
        <asp:ScriptManager ID="ajax" runat="server">
        </asp:ScriptManager>
        <asp:TreeView ID="trCSDL" runat="server" ExpandDepth="1" Height="576px" 
            ImageSet="XPFileExplorer" NodeIndent="15" 
            Width="431px" onselectednodechanged="OnNodeSelect">
            <ParentNodeStyle Font-Bold="False" />
            <HoverNodeStyle Font-Underline="True" ForeColor="#6666AA" />
            <SelectedNodeStyle BackColor="#B5B5B5" Font-Underline="False" 
                HorizontalPadding="0px" VerticalPadding="0px" />
            <NodeStyle Font-Names="Tahoma" Font-Size="8pt" ForeColor="Black" 
                HorizontalPadding="2px" NodeSpacing="0px" VerticalPadding="2px" />
        </asp:TreeView>
       
    </div> 
    <div id="divEntitySet" runat="server" style="float:right">
        <asp:Label ID="lblEntitySetShowColumns" runat="server" Text="Label" Font-Bold="True">Show all columns, or show only these columns: </asp:Label>
        <br />
        <br />
        <asp:CheckBoxList ID="chkEntitySetColumns" runat="server" AutoPostBack="True" OnSelectedIndexChanged="chkEntitySetColumns_SelectedChanged" RepeatDirection="Horizontal" RepeatLayout="Flow">
        </asp:CheckBoxList>
        <br />
        <br />
        <asp:Label ID="lblEntitySetQuery" runat="server" Font-Bold="True">This is the corresponding eSQL: </asp:Label>
        <br />
        <asp:TextBox ID="txtQuery" runat="server" width="600px" 
        style="margin-left: 0px" Enabled="false"></asp:TextBox>
        <br />
        <asp:Button ID="btnExecuteQuery" runat="server" Text="Execute" 
        onclick="btnExecuteQuery_Click" style="float:right" />
        <br/>
        <br/>
        <asp:GridView ID="grdResults" runat="server"/>
    </div>   
    </ContentTemplate>
    
    
    </asp:UpdatePanel>
    </form>
</body>
</html>
